package com.xx.springboot.designPattern.FactoryMode;/**
 * Created by xiaoxiunique on 2018-11-15.
 */

/**
 * <p>
 * TODO:
 * </p>
 *
 * @author hcg
 * @date 2018-11-15 16:38
 * @className NYPizzaIngredientFoctory
 */
public class NYPizzaIngredientFoctory implements PizzaIngredientFactory{
    /**
     * 创建面团
     *
     * @return
     */
    public Dough createDough() {
        return new ThinCrustDough();
    }

    /**
     * 创建酱料
     *
     * @return
     */
    public Sauce createSauce() {
        return new MarinaraSauce();
    }

    /**
     * 创建起司
     *
     * @return
     */
    public Cheese createCheese() {
        return new ReggianoCheese();
    }

    /**
     * 创建素菜
     *
     * @return
     */
    public Veggies[] createVeggies() {
        Veggies veggies[] = {new Garlic(), new Onion(), new Mushroom(), new RedPepper()};
        return veggies;
    }

    /**
     * 创建意大利辣味香肠
     *
     * @return
     */
    public Pepperoni createPepperoni() {
        return null;
    }

    /**
     * 创建哈蜊
     *
     * @return
     */
    public Clams createClam() {
        return null;
    }
}
